from selenium import webdriver
from time import sleep
driver = webdriver.Chrome()
driver.get("https://www.baidu.com")
driver.set_window_size(480,800)                #设置窗口大小
driver.find_element_by_id("kw").send_keys("selenium")
seearch.submit()
sleep(5)
driver.quit()